﻿@inherits BaseComponent

@if (CurrentUser == null)
{
    <AntButton Name="登录 | 注册" Block OnClick="AntBlazor.showModal('modal-login')" />
}
else
{
    <a href="./creator">
        <AntAvatar Src="@CurrentUser?.AvatarUrl" />
    </a>
}
@if (CurrentUser == null)
{
    <LoginForm Id="modal-login" />
}